package com.zkthink.ceres.applet.comment.domain.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import lombok.Data;

/**
 * @Author cmz
 * @Date 2024-04-28 17:35
 */
@Data
@TableName(value = "applet_comment")
public class AppletComment {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 父评价id，当此评价为追评时，有父评价id
     */
    @TableField(value = "parent_id")
    private Long parentId;

    /**
     * 用户id
     */
    @TableField(value = "mid")
    private Long mid;

    /**
     * 商品/服务id
     */
    @TableField(value = "product_id")
    private Long productId;

    /**
     * 商品类型：商品product:P/服务server:S
     */
    @TableField(value = "product_type")
    private Integer productType;

    /**
     * 描述相符评分 1 - 5 星级数
     */
    @TableField(value = "desc_star")
    private Byte descStar;

    /**
     * 物流评分
     */
    @TableField(value = "logistics_star")
    private Byte logisticsStar;

    /**
     * 服务态度评分
     */
    @TableField(value = "service_star")
    private Byte serviceStar;

    /**
     * 主评分
     */
    @TableField(value = "comment_star")
    private Byte commentStar;

    /**
     * 评论内容
     */
    @TableField(value = "comment_text")
    private String commentText;

    /**
     * 评论类型 1-评价 2-追评
     */
    @TableField(value = "biz_type")
    private Byte bizType;

    /**
     * 评论图片
     */
    @TableField(value = "comment_imgs")
    private String commentImgs;

    /**
     * 点赞数
     */
    @TableField(value = "like_num")
    private Integer likeNum;

    /**
     * 店铺id
     */
    @TableField(value = "store_id")
    private Long storeId;

    /**
     * 理疗车id
     */
    @TableField(value = "vehicles_id")
    private Long vehiclesId;
    

    /**
     * 创建用户
     */
    @TableField(value = "create_user")
    private String createUser;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 最后修改用户
     */
    @TableField(value = "update_user")
    private String updateUser;

    /**
     * 最后修改时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 是否删除 1-删除 0-不删除
     */
    @TableField(value = "is_delete")
    @TableLogic(value = "0",delval = "1")
    private Boolean isDelete;

    /**
     * 车惠龙订单id
     */
    @TableField(value = "chlorder_id")
    private Long chlorderId;

    @TableField(value = "hide_flag")
    private Boolean hideFlag;

    public static final String COL_ID = "id";

    public static final String COL_PARENT_ID = "parent_id";

    public static final String COL_MID = "mid";

    public static final String COL_PRODUCT_ID = "product_id";

    public static final String COL_PRODUCT_TYPE = "product_type";

    public static final String COL_DESC_STAR = "desc_star";

    public static final String COL_LOGISTICS_STAR = "logistics_star";

    public static final String COL_SERVICE_STAR = "service_star";

    public static final String COL_COMMENT_STAR = "comment_star";

    public static final String COL_COMMENT_TEXT = "comment_text";

    public static final String COL_BIZ_TYPE = "biz_type";

    public static final String COL_COMMENT_IMGS = "comment_imgs";

    public static final String COL_LIKE_NUM = "like_num";

    public static final String COL_STORE_ID = "store_id";

    public static final String COL_CREATE_USER = "create_user";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_USER = "update_user";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_IS_DELETE = "is_delete";

    public static final String COL_CHLORDER_ID = "chlorder_id";
}